package fr.mywiki.view.array.cell.entry;

import fr.mywiki.business.entry.EntryLite;
import fr.mywiki.business.versioning.VersionManager;
import fr.mywiki.model.ejbAdapter.Value;
import fr.mywiki.view.array.cell.CellType;

/** Displays the number of versions of an entry. */
public class NumberOfVersionsDisplayer implements CellType {
	public String compute(Value value) {
		return VersionManager.getInstance().getVersions((EntryLite) value).size()
				+ "";
	}
}
